﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UIWindows.Models.MES
{
    /// <summary>
    /// 注液上料(拆盘)扫描记录 每5个托盘上传一次
    /// </summary>
    public class ParentVO
    {
        /// <summary>
        /// ID
        /// </summary>
        public string RID { get; set; }
        /// <summary>
        /// 托盘号
        /// </summary>
        public string TrayNomber { get; set; }

        /// <summary>
        /// 扫描时间
        /// </summary>
        public string ScanTime { get; set; }

        /// <summary>
        /// 工单号
        /// </summary>
        public string Workorder { get; set; }

        /// <summary>
        /// 料号
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 型号
        /// </summary>
        public string MaterialSpec { get; set; }

        /// <summary>
        /// 工序
        /// </summary>
        public string Process { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        public string EquipmentCode { get; set; }

        /// <summary>
        /// 操作员
        /// </summary>
        public string Operator { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string Batchnumber { get; set; }
    }
    public class RootObject
    {
        public List<ParentVO> parentvo { get; set; }
    }
    public class MESTrayScanRecordDataLogModel : RootObject
    {
        /// <summary>
        /// 序号
        /// </summary>
        public Guid ID { get; set; }
        /// <summary>
        /// 上传结果
        /// </summary>
        public string Result { get; set; }
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime UploadedDate { get; set; }
        /// <summary>
        /// 补录时间
        /// </summary>
        public DateTime SupplementalDate { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 当前状态 -1 上传失败 0 重新上传失败 1 重新上传成功
        /// </summary>
        public int CurrentStatus { get; set; } = -1;

    }
}
